﻿<UserControl x:Class="Views.ToolbarView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Height="142" Width="784" >
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions></Grid.RowDefinitions>

        <Button Content="地震" 
                Grid.Column="0" 
                Command="{Binding Commands[queryearthquakecommand]}" 
                IsEnabled="{Binding Commands[queryearthquakecommand].IsEnabled}" ></Button>
        <Button Grid.Column="1" 
                Content="灾害预警" 
                Command="{Binding Commands[querydisastercommand]}" 
                IsEnabled="{Binding Commands[querydisastercommand].IsEnabled}" ></Button>
        <Button Grid.Column="2" 
                Content="风雨监测" 
                Command="{Binding Commands[queryrainlivecommand]}" 
                IsEnabled="{Binding Commands[queryrainlivecommand].IsEnabled}" ></Button>
        <Button Grid.Column="3"
                Content="卫星云图" 
                Command="{Binding Commands[querywxytcommand]}" 
                IsEnabled="{Binding Commands[querywxytcommand].IsEnabled}" ></Button>
        <Button Grid.Column="4"
                Content="雷达图" 
                Command="{Binding Commands[queryradarcrefcommand]}" 
                IsEnabled="{Binding Commands[queryradarcrefcommand].IsEnabled}" ></Button>
        <Button Grid.Column="5"
                Content="天气污染指数" 
                Command="{Binding Commands[querypm25command]}" 
                IsEnabled="{Binding Commands[querypm25command].IsEnabled}" ></Button>
        <Button Grid.Column="6" 
                Content="水雨情" 
                Command="{Binding Commands[querysyqcommand]}" 
                IsEnabled="{Binding Commands[querysyqcommand].IsEnabled}"></Button>
        <Button Grid.Column="7" 
                Content="AIS在线" 
                Command="{Binding Commands[queryaiscommand]}" 
                IsEnabled="{Binding Commands[queryaiscommand].IsEnabled}"></Button>
    </Grid>
</UserControl>
